<header class="aui-bar aui-bar-nav aui-bar-light" style="position:fixed;top:0;">
    <a class="aui-pull-left aui-btn">
        <span class="aui-iconfont aui-icon-left" ng-click="back()"></span>
    </a>
    <div class="aui-title">购物车</div>
</header>
	<div class="aui-content" ng-init="cartAction()" style="top:2.25rem;position: relative;">
		<div class="aui-list aui-media-list">
			<li class="aui-list-item" ng-repeat="(shop_id,shop) in shops">
				<div class="aui-media-list-item-inner">
					<div class="aui-list-item-label-icon" style="padding-right:0;">
			                <input class="aui-radio" ng-model="shop.allchecked" type="checkbox"  name="radio"  ng-click="checkshopAllItem(shop)">
			        </div>
					<div class="aui-list-item-inner">
						<div class="aui-list-item-text">
							<div class="aui-list-item-title" ng-click="Jumpshop(shop_id,shop)">
		                    	<span class="aui-iconfont aui-icon-home"> </span>
		                    	{{shop.shop.name}}
		                    	<span class="aui-iconfont aui-icon-right"> </span>
		                    </div>
		                    <div class="aui-list-item-right" ng-click="updateListEditStatu(shop)">
		                    	<span ng-if="shop.cartEdit=='load'">编辑</span>
		                    	<span ng-if="shop.cartEdit=='edit'">完成</span>
		                    </div>
	                    </div>
					</div>
				</div>
	            <div class="aui-media-list-item-inner" ng-repeat="cart in shop.carts">
		            <div class="aui-list-item-label-icon" style="padding-right:0;">
		                <input class="aui-radio" type="checkbox" ng-model="cart.deleteCheckbox" name="radio" ng-click="buyOrderAdd(cart,shop)" checked>
		            </div>
	                <div class="aui-list-item-media" ng-click="herfItemInfo(shop,cart.item)">
	                    <img ng-src="{{cart.image}}" ng-click="">
	                </div>
	                <div class="aui-list-item-inner" ng-repeat="sku in cart.item.skus" ng-if="shop.cartEdit=='load'&&sku.sku_checked" ng-click="herfItemInfo(shop,cart.item)">
	                	<div class="aui-list-item-title">
	                		{{cart.item.title}}
	                	</div>
	                    <div class="aui-list-item-text" >
	                        {{sku.skus_propertie_name}}
	                    </div>
	                     <div class="aui-list-item-text">
	                        <div class="aui-list-item-title">￥{{cart.price}}</div>
	                        <div class="aui-list-item-right">x{{cart.quantity}}</div>
	                    </div>
	                </div>
	                 <div class="aui-list-item-inner" ng-if="shop.cartEdit=='edit'" style="padding-right:0;">
	                    <div class="aui-row" style="height:100%;">
	                    	<div class="aui-col-xs-8">
	                    		 <div class="aui-bar aui-bar-btn" style="" type="count" id="{cart.cart_id}">
							    <div class="aui-bar-btn-item aui-font-size-20" ng-click="cartnumTab(cart,'-')">
							        <i class="aui-iconfont aui-icon-minus"></i>
							    </div> 
							    <div class="aui-bar-btn-item">
							        <input type="number" disabled class="aui-input aui-text-center" id="count" ng-model="cart.quantity" >
							       
							    </div>
							    <div class="aui-bar-btn-item aui-font-size-20" ng-click="cartnumTab(cart,'+')">
							        <i class="aui-iconfont aui-icon-plus"></i>
							    </div>
							</div>
	                    	</div>
	                    	<div class="aui-col-xs-4" style="height:100%;">
	                    		<a class=" aui-btn aui-btn-danger" style="background:#fff;border:0px;height:100%;width:2.5rem;" ng-click="cartDelete(shop,cart,$index)">
							       删除
							    </a>
	                    	</div>
	                    </div>
	                </div>
	            </div>
	        <!--     <div class="aui-info" style="padding-top:0">
	                <div class="aui-info-item">
	                    <img src="../../image/liulangnan.png" style="width:1rem" class="aui-img-round" /><span class="aui-margin-l-5">流浪男</span>
	                    </div>
	                <div class="aui-info-item">2015-07-14 10:31</div>
	            </div> -->
	        </li>
		</div>
		<div class="" style="height:4.5rem;"></div>
	</div>
	    <footer class="aui-bar aui-bar-tab" id="222">
		    <div class="aui-bar-tab-item aui-active" tapmode>
		        <i class="aui-iconfont aui-icon-home"></i>
		        <div class="aui-bar-tab-label">首页</div>
		    </div>
		    <div class="aui-bar-tab-item" tapmode>
		        <i class="aui-iconfont aui-icon-star"></i>
		        <div class="aui-bar-tab-label">收藏</div>
		    </div>
		    <div class="aui-bar-tab-item" tapmode>
		        <div class="aui-badge">99</div>
		        <i class="aui-iconfont aui-icon-cart"></i>
		        <div class="aui-bar-tab-label">购物车</div>
		    </div>
		    <div class="aui-bar-tab-item" ui-sref="user.list" tapmode>
		        <div class="aui-dot"></div>
		        <i class="aui-iconfont aui-icon-my"></i>
		        <div class="aui-bar-tab-label">我的</div>
		    </div>
		</footer>

<!-- 	<div class="aui-row" style="position:fixed;bottom:2.5rem;">

        <div class="aui-col-xs-9">
        	 <input class="aui-radio" type="checkbox" ng-model="cart.deleteCheckbox" name="radio" ng-click="favoritesCheckboxDeleteId(cart)" checked>
        	 全选
        </div>
    </div> -->
    <footer class="aui-bar aui-bar-tab" id="222" style="bottom:2.5rem;" ng-if="isShops();">
		    <div class="aui-bar-tab-item " tapmode>
		         <input class="aui-radio" type="checkbox" ng-model="cart.deleteCheckbox" name="radio" ng-click="favoritesCheckboxDeleteId(cart)" checked>
		         全选
		    </div>
		    <div class="aui-bar-tab-item" tapmode>
		        
		    </div>
		    <div class="aui-bar-tab-item" tapmode>
		        <!-- <div class="aui-badge">99</div>
		        <i class="aui-iconfont aui-icon-cart"></i>
		        <div class="aui-bar-tab-label">购物车</div> -->
		        <div class="aui-font-size-14">合计：{{cartTotal |number : 2}}</div>
		        <div class="aui-font-size-12">不含运费</div>
		    </div>
		    <div class="aui-bar-tab-item " tapmode>
		       <a class="aui-bar-btn-item aui-btn " ng-class="{false:'aui-btn-warning',true:''} [buyCheckedDisabled]" ng-if="buyCheckedDisabled"  style="background:#fff;border:0px;" >
		       结算
		    </a>
		    <a class="aui-bar-btn-item aui-btn " ng-class="{false:'aui-btn-warning',true:''} [buyCheckedDisabled]"  style="background:#fff;border:0px;" ng-if="!buyCheckedDisabled" href="#/buy/add?cart={{buyChecked}}">
		       结算
		    </a>
		    </div>
		</footer>